gtk4.git
9 years agoFix the scrolledwindow test
Matthias Clasen [Wed, 31 Aug 2016 19:04:57 +0000 (15:04 -0400)]
Fix the scrolledwindow test

These tests were written for the propagate-nat-size semantics,
so opt in to it.

9 years agoGtkScrolledWindow: Bug 766569 - Make propagation of natural child sizes optional
Tristan Van Berkom [Wed, 31 Aug 2016 04:54:25 +0000 (13:54 +0900)]
GtkScrolledWindow: Bug 766569 - Make propagation of natural child sizes optional

Making propagation of child natural sizes mandatory (or default, even) was
evidently a mistake as this causes dynamic content in a scrolled window
to resize it's parent when the scrolled window is competing for space
with an adjacent widget.

This patch instead adds API to control whether natural width and
height of the child should be propagated through the scrolled windows
size requests.

9 years agoRequire wayland-protocols 1.7
Matthias Clasen [Wed, 31 Aug 2016 11:07:01 +0000 (07:07 -0400)]
Require wayland-protocols 1.7

Needed for xdg-shell v6.

9 years agoUpdated German translation
Christian Kirbach [Wed, 31 Aug 2016 07:10:52 +0000 (07:10 +0000)]
Updated German translation

9 years agoUpdated Hungarian translation
Gábor Kelemen [Tue, 30 Aug 2016 07:39:03 +0000 (07:39 +0000)]
Updated Hungarian translation

9 years ago3.21.5
Matthias Clasen [Mon, 29 Aug 2016 17:34:05 +0000 (13:34 -0400)]
3.21.5

9 years agox11: Fix a trap mixup
Matthias Clasen [Mon, 29 Aug 2016 19:49:24 +0000 (15:49 -0400)]
x11: Fix a trap mixup

There was a return between a push/pop of an error trap, and
this managed to trigger the 'unpopped trap' warning in the
displayclose test now. Fix this.

9 years agogtk: window: don't forget to realize popovers of subwindows
Lionel Landwerlin [Thu, 25 Aug 2016 19:38:52 +0000 (20:38 +0100)]
gtk: window: don't forget to realize popovers of subwindows

https://bugzilla.gnome.org/show_bug.cgi?id=770307

9 years agoDocument handle-related Wayland api
Matthias Clasen [Mon, 29 Aug 2016 17:12:56 +0000 (13:12 -0400)]
Document handle-related Wayland api

In particular, note that this API depends on an unstable
Wayland protocol and thus may have to change.

9 years agowayland: Add API for setting an exported as a parent
Jonas Ådahl [Wed, 13 Jul 2016 07:24:19 +0000 (15:24 +0800)]
wayland: Add API for setting an exported as a parent

Add an API that enables an application to, given an exported window
handle, set its own window as a transient of the window associated with
the exported window handle.

https://bugzilla.gnome.org/show_bug.cgi?id=769788

9 years agowindow: Add Wayland implementation of gtk_window_export_handle
Jonas Ådahl [Wed, 13 Jul 2016 07:22:59 +0000 (15:22 +0800)]
window: Add Wayland implementation of gtk_window_export_handle

https://bugzilla.gnome.org/show_bug.cgi?id=769788

9 years agowayland: Add API for creating exported window handles
Jonas Ådahl [Tue, 12 Jul 2016 03:49:39 +0000 (11:49 +0800)]
wayland: Add API for creating exported window handles

Using the xdg_foreign protocol, expose a way to get handles to windows
that may be shared between processes.

https://bugzilla.gnome.org/show_bug.cgi?id=769788

9 years agoUse NULL for generic marshallers in g_signal_new()
Benjamin Otte [Mon, 29 Aug 2016 14:00:17 +0000 (16:00 +0200)]
Use NULL for generic marshallers in g_signal_new()

glib will use the correct marshaller automatically. And as a side
effect, we also get all glib optimizations, like a va marshaller.

9 years agoabout dialog: Set a max-content-height on credits
Matthias Clasen [Mon, 29 Aug 2016 14:01:20 +0000 (10:01 -0400)]
about dialog: Set a max-content-height on credits

This keeps the credits section from making the dialog grow
when there are lots of credits.

https://bugzilla.gnome.org/show_bug.cgi?id=770458

9 years agogtkplacessidebar: fix signal marshal
Carlos Soriano [Mon, 29 Aug 2016 12:39:48 +0000 (14:39 +0200)]
gtkplacessidebar: fix signal marshal

We were using __VOID for the SHOW_OTHER_LOCATION signal that
uses flags named SHOR_OTHER_LOCATION_WITH_FLAGS.
However, if a signal uses flags the marshal needs to use __FLAGS.

This patch addresses this using VOID__FLAGS as the marshaler parameter.

Thanks to Jan Steffens for pointing this out.

https://bugzilla.gnome.org/show_bug.cgi?id=770550

9 years agoUpdated Serbian translation
Мирослав Николић [Sun, 28 Aug 2016 19:55:26 +0000 (21:55 +0200)]
Updated Serbian translation

9 years agoUpdated Serbian translation
Мирослав Николић [Sun, 28 Aug 2016 19:54:20 +0000 (21:54 +0200)]
Updated Serbian translation

9 years agoGDK W32: Remove obsolete assertions
Руслан Ижбулатов [Fri, 26 Aug 2016 20:46:27 +0000 (20:46 +0000)]
GDK W32: Remove obsolete assertions

9 years agoUpdated Polish translation
Piotr Drąg [Fri, 26 Aug 2016 11:46:38 +0000 (13:46 +0200)]
Updated Polish translation

9 years agoUpdates
Matthias Clasen [Fri, 26 Aug 2016 05:09:40 +0000 (01:09 -0400)]
Updates

9 years agoAdd braces to appease gcc
Benjamin Otte [Thu, 25 Aug 2016 21:01:28 +0000 (23:01 +0200)]
Add braces to appease gcc

-ftrack-macro-expansion=0 doesn't like if statements without braces when
evaluating indentation levels.

9 years agouimanager: Correctly indent code
Benjamin Otte [Thu, 25 Aug 2016 19:05:25 +0000 (21:05 +0200)]
uimanager: Correctly indent code

9 years agoa11y: Correctly indent code
Benjamin Otte [Thu, 25 Aug 2016 19:05:07 +0000 (21:05 +0200)]
a11y: Correctly indent code

9 years agoUpdated Slovenian translation
Matej Urbančič [Thu, 25 Aug 2016 20:16:17 +0000 (22:16 +0200)]
Updated Slovenian translation

9 years agoUpdated Slovenian translation
Matej Urbančič [Thu, 25 Aug 2016 20:09:16 +0000 (22:09 +0200)]
Updated Slovenian translation

9 years agocell renderer text: Allow entries to shrink
Matthias Clasen [Thu, 25 Aug 2016 11:48:20 +0000 (07:48 -0400)]
cell renderer text: Allow entries to shrink

Set a small max-width on entries used for editing cells, so they
adapt to small columns and don't overlap the next column.

https://bugzilla.gnome.org/show_bug.cgi?id=770374

9 years agowayland: add min/max size from xdg-shell v6
Olivier Fourdan [Tue, 5 Apr 2016 16:17:40 +0000 (18:17 +0200)]
wayland: add min/max size from xdg-shell v6

Bugzilla: https://bugzilla.gnome.org/show_bug.cgi?id=764413

9 years agowayland: Implement move_to_rect
Jonas Ådahl [Fri, 8 Jul 2016 08:54:36 +0000 (16:54 +0800)]
wayland: Implement move_to_rect

Translate move_to_rect parameter into xdg_positioner requests, and use
the generated xdg_positioner to create the popup.

https://bugzilla.gnome.org/show_bug.cgi?id=769937

9 years agowayland: Port to xdg_shell unstable v6
Jonas Ådahl [Fri, 1 Jul 2016 09:03:36 +0000 (17:03 +0800)]
wayland: Port to xdg_shell unstable v6

https://bugzilla.gnome.org/show_bug.cgi?id=769937

9 years agowayland: Move window geometry calculation to helper
Jonas Ådahl [Fri, 1 Jul 2016 09:02:11 +0000 (17:02 +0800)]
wayland: Move window geometry calculation to helper

We'll use it from more places later.

https://bugzilla.gnome.org/show_bug.cgi?id=769937

9 years agowayland: Only update the window title if it actually updated
Jonas Ådahl [Fri, 1 Jul 2016 08:51:32 +0000 (16:51 +0800)]
wayland: Only update the window title if it actually updated

This makes the protocol log less spammy.

https://bugzilla.gnome.org/show_bug.cgi?id=769937

9 years agowayland: Only sync surface regions once per commit
Jonas Ådahl [Fri, 1 Jul 2016 08:48:16 +0000 (16:48 +0800)]
wayland: Only sync surface regions once per commit

Only set input, opaque and window geometry regions once per commit.
They are double buffered anyway, so the last one would only take effect
either way; this way reading protocol logs are much more pleasent.

https://bugzilla.gnome.org/show_bug.cgi?id=769937

9 years agowayland: Remove gdk_wayland_display_get_xdg_shell()
Jonas Ådahl [Tue, 26 Jan 2016 02:14:54 +0000 (10:14 +0800)]
wayland: Remove gdk_wayland_display_get_xdg_shell()

Don't expose the xdg_shell struct as it is not yet a stable type that
will stay the same.

https://bugzilla.gnome.org/show_bug.cgi?id=769937

9 years agowayland: Get tiled state from gtk_shell instead of xdg_shell
Jonas Ådahl [Tue, 28 Jun 2016 07:01:22 +0000 (15:01 +0800)]
wayland: Get tiled state from gtk_shell instead of xdg_shell

Use our the 'tiled' entry from our new 'state' enum sent via
xdg_surface.configure.

https://bugzilla.gnome.org/show_bug.cgi?id=769937

9 years agowayland: Fix indentation
Jonas Ådahl [Tue, 28 Jun 2016 07:01:04 +0000 (15:01 +0800)]
wayland: Fix indentation

https://bugzilla.gnome.org/show_bug.cgi?id=769937

9 years agowayland: Add some more debug spew
Matthias Clasen [Thu, 25 Aug 2016 04:13:13 +0000 (00:13 -0400)]
wayland: Add some more debug spew

9 years agowayland: Replace g_debug by GDK_NOTE
Matthias Clasen [Thu, 25 Aug 2016 03:59:46 +0000 (23:59 -0400)]
wayland: Replace g_debug by GDK_NOTE

We have this framework, lets use it.

9 years agoDocument window-icon related api as 'may not work'
Matthias Clasen [Wed, 24 Aug 2016 18:43:58 +0000 (14:43 -0400)]
Document window-icon related api as 'may not work'

Some platforms simply don't have window icons (such as Wayland).

9 years agonotebook: Update arrow state when switching pages
Matthias Clasen [Wed, 24 Aug 2016 18:10:35 +0000 (14:10 -0400)]
notebook: Update arrow state when switching pages

Otherwise, we may end up showing clickable arrows that don't
do anything.

https://bugzilla.gnome.org/show_bug.cgi?id=770332

9 years agoscale: Document interaction between rounding and autoscrolling
Matthias Clasen [Wed, 24 Aug 2016 16:58:54 +0000 (12:58 -0400)]
scale: Document interaction between rounding and autoscrolling

This is a bit of a gotcha, so better document it.

9 years agowidget-factory: Fix smooth autoscrolling of scales
Matthias Clasen [Wed, 24 Aug 2016 16:53:28 +0000 (12:53 -0400)]
widget-factory: Fix smooth autoscrolling of scales

There is annoying interference between formatting the value
(for which we set the number of digits to show) and the small
frame-to-frame value changes that we do for autoscrolling.

To work around this, turn off the digits-based rounding entirely
and format the value ourselves with ::format-value.

9 years agogtk-demo: Make the scale demo fully functional
Matthias Clasen [Wed, 24 Aug 2016 15:11:57 +0000 (11:11 -0400)]
gtk-demo: Make the scale demo fully functional

The adjustments need to have step-increment and page-increment
set up, or keynav and autoscrolling will not work.

9 years agoAllow activating the desktop portal for inhibit
Matthias Clasen [Wed, 24 Aug 2016 14:54:00 +0000 (10:54 -0400)]
Allow activating the desktop portal for inhibit

We allow it everywhere else, and there is nothing wrong with it.

9 years agoUpdated Czech translation
Marek Černocký [Wed, 24 Aug 2016 12:10:11 +0000 (14:10 +0200)]
Updated Czech translation

9 years agoUpdated Spanish translation
Daniel Mustieles [Wed, 24 Aug 2016 10:05:51 +0000 (10:05 +0000)]
Updated Spanish translation

9 years agoUpdate POTFILES.in and POTFILES.skip
Piotr Drąg [Tue, 23 Aug 2016 19:57:59 +0000 (21:57 +0200)]
Update POTFILES.in and POTFILES.skip

9 years agodemos: Use stateful actions for rings/strips in "Touch and Drawing Tablets" demo
Carlos Garnacho [Tue, 23 Aug 2016 18:18:10 +0000 (20:18 +0200)]
demos: Use stateful actions for rings/strips in "Touch and Drawing Tablets" demo

https://bugzilla.gnome.org/show_bug.cgi?id=770026

9 years agoGtkPadController: Make ring/strip actions be activated with the axis value
Carlos Garnacho [Tue, 23 Aug 2016 18:16:02 +0000 (20:16 +0200)]
GtkPadController: Make ring/strip actions be activated with the axis value

This way these axes may be used in detail by the implementors of pad GActions.

https://bugzilla.gnome.org/show_bug.cgi?id=770026

9 years agoGtkEventController: Add some comment describing the filter_event private vfunc
Carlos Garnacho [Tue, 23 Aug 2016 18:31:29 +0000 (20:31 +0200)]
GtkEventController: Add some comment describing the filter_event private vfunc

It might not be entirely clear what the boolean return value means.

https://bugzilla.gnome.org/show_bug.cgi?id=770026

9 years agodemos: Add pad support to "event axes" demo
Carlos Garnacho [Thu, 4 Aug 2016 17:51:24 +0000 (19:51 +0200)]
demos: Add pad support to "event axes" demo

And rename it to "Touch and Drawing Tablets", since it's no longer about
"axes" really.

As for pad support in the demo, just keep it "simple", make the
controller handle all pad devices, and make all the actions have the
same callback.

https://bugzilla.gnome.org/show_bug.cgi?id=770026

9 years agoGtkPadController: Notify actions back to the windowing on wayland
Carlos Garnacho [Thu, 4 Aug 2016 17:49:27 +0000 (19:49 +0200)]
GtkPadController: Notify actions back to the windowing on wayland

This allows applications to provide descriptions of the actions performed
by each pad feature. pass the GtkPadActionEntry labels for this.

https://bugzilla.gnome.org/show_bug.cgi?id=770026

9 years agowayland: Offer wayland-specific method to set pad actions feedback
Carlos Garnacho [Thu, 4 Aug 2016 17:47:13 +0000 (19:47 +0200)]
wayland: Offer wayland-specific method to set pad actions feedback

The wayland tablet protocol allows notifying the compositor with
descriptions of the actions performed by each tablet element. This
API call allows to hook up in to this wayland-specific feature.

https://bugzilla.gnome.org/show_bug.cgi?id=770026

9 years agowayland: Support pad devices in gdk_wayland_device_get_node_path()
Carlos Garnacho [Thu, 4 Aug 2016 17:46:04 +0000 (19:46 +0200)]
wayland: Support pad devices in gdk_wayland_device_get_node_path()

We can return the node path on those too, so do that.

https://bugzilla.gnome.org/show_bug.cgi?id=770026

9 years agowayland: Implement pad event emission
Carlos Garnacho [Thu, 4 Aug 2016 17:44:44 +0000 (19:44 +0200)]
wayland: Implement pad event emission

We now send all the set of button/ring/strip/group_mode events.

https://bugzilla.gnome.org/show_bug.cgi?id=770026

9 years agowayland: Create/expose pad devices
Carlos Garnacho [Thu, 4 Aug 2016 17:42:23 +0000 (19:42 +0200)]
wayland: Create/expose pad devices

These devices are kind of an strange case. Their "master" device is
the keyboard, because they share toplevel focus with it, regardless
of stylus focus. Nonetheless, they are only expected to send the
GdkEventPad* set of events.

https://bugzilla.gnome.org/show_bug.cgi?id=770026

9 years agowayland: Add GdkWaylandDevicePad
Carlos Garnacho [Thu, 4 Aug 2016 17:40:14 +0000 (19:40 +0200)]
wayland: Add GdkWaylandDevicePad

This is a subclass of GdkWaylandDevice that implements GdkDevicePad,
all pad features are looked up from the info obtained through the
tablet v2 interface.

https://bugzilla.gnome.org/show_bug.cgi?id=770026

9 years agowayland: Implement backbone of pad support
Carlos Garnacho [Thu, 4 Aug 2016 17:36:32 +0000 (19:36 +0200)]
wayland: Implement backbone of pad support

All pad interfaces and features are poked, we just now need
exposing those.

https://bugzilla.gnome.org/show_bug.cgi?id=770026

9 years agogtk: Add GtkPadController
Carlos Garnacho [Thu, 4 Aug 2016 17:22:34 +0000 (19:22 +0200)]
gtk: Add GtkPadController

This GdkEventController is a helper object to handle pad events,
it allows setting a mapping to action names, to be triggered in
the given action group.

In order to help on places where advanced mapping/configurability
of pad features is not desirable, this controller also allows
passing a NULL pad device, meaning it will listen on all pads,
and/or passing -1 on mode/index, so an action applies to all
modes/features (eg. strips/rings).

https://bugzilla.gnome.org/show_bug.cgi?id=770026

9 years agogtk: Add minimal handling of pad events
Carlos Garnacho [Thu, 4 Aug 2016 17:17:21 +0000 (19:17 +0200)]
gtk: Add minimal handling of pad events

No real handling is yet performed, to be done through a GdkEventController

https://bugzilla.gnome.org/show_bug.cgi?id=770026

9 years agogdk: Add GdkDevicePad
Carlos Garnacho [Thu, 4 Aug 2016 17:12:57 +0000 (19:12 +0200)]
gdk: Add GdkDevicePad

This is an interface meant to be implemented by the "pad" devices.
This device-specific interface exposes the mapping of all pad features,
it allows retrieving:
- The number of buttons/rings/strips
- The number of groups
- The number of modes a group has
- Whether a given button/ring/strip belongs to a given group

https://bugzilla.gnome.org/show_bug.cgi?id=770026

9 years agogdk: Address pad events similarly to keyboard events
Carlos Garnacho [Thu, 4 Aug 2016 17:10:21 +0000 (19:10 +0200)]
gdk: Address pad events similarly to keyboard events

We want the same treatment for those, the event will be emitted on the
toplevel, which will then decide what to do with the event.

It just doesn't make much sense to propagate those up/down the hierarchy,
when we want specifically one action being triggered from those.

https://bugzilla.gnome.org/show_bug.cgi?id=770026

9 years agogdk: Add pad event structs, enum values, and event mask bit
Carlos Garnacho [Thu, 4 Aug 2016 17:04:36 +0000 (19:04 +0200)]
gdk: Add pad event structs, enum values, and event mask bit

GDK_PAD_BUTTON*,RING and STRIP will be emitted respectively when
pad buttons, rings or strips are interacted with. Each of those
pad components belong to a group (a pad can contain several of
those), which may be in a given mode. All this information is
contained in the event.

GDK_PAD_GROUP_MODE is emitted when a group in the pad switches
mode, which will generally result in a different set of actions
being triggered from the same buttons/rings/strips in the group.

https://bugzilla.gnome.org/show_bug.cgi?id=770026

9 years agogdkdevice: Add GDK_SOURCE_TABLET_PAD input source type for GdkDevices
Carlos Garnacho [Thu, 4 Aug 2016 17:01:38 +0000 (19:01 +0200)]
gdkdevice: Add GDK_SOURCE_TABLET_PAD input source type for GdkDevices

This will represent a tablet pad.

https://bugzilla.gnome.org/show_bug.cgi?id=770026

9 years agowayland: Add wayland-specific method to retrieve a device node path
Carlos Garnacho [Thu, 4 Aug 2016 16:59:09 +0000 (18:59 +0200)]
wayland: Add wayland-specific method to retrieve a device node path

This will be useful at least for g-c-c, in order to match libwacom
data with GdkDevices.

https://bugzilla.gnome.org/show_bug.cgi?id=770026

9 years agogdk: Pass hardware ID on gdk_device_tool_new()
Carlos Garnacho [Thu, 4 Aug 2016 16:52:51 +0000 (18:52 +0200)]
gdk: Pass hardware ID on gdk_device_tool_new()

And implement this on wayland, where this information is already obtained.

https://bugzilla.gnome.org/show_bug.cgi?id=770026

9 years agogdk: Add a getter for the hardware id of a GdkDeviceTool
Carlos Garnacho [Thu, 4 Aug 2016 16:49:13 +0000 (18:49 +0200)]
gdk: Add a getter for the hardware id of a GdkDeviceTool

Although scarcely used, this information may be useful to retrieve
from the windowing systems that offer this information.

https://bugzilla.gnome.org/show_bug.cgi?id=770026

9 years agogtkbindings: Add an example for gtk_binding_entry_add_signal()
Philip Withnall [Mon, 22 Aug 2016 14:39:02 +0000 (15:39 +0100)]
gtkbindings: Add an example for gtk_binding_entry_add_signal()

Otherwise the way the varargs are supposed to be used is completely
opaque.

https://bugzilla.gnome.org/show_bug.cgi?id=770236

9 years agoUpdate Catalan translation
Jordi Mas [Mon, 22 Aug 2016 19:52:18 +0000 (21:52 +0200)]
Update Catalan translation

9 years agoUpdated Polish translation
Piotr Drąg [Mon, 22 Aug 2016 18:00:39 +0000 (20:00 +0200)]
Updated Polish translation

9 years agogtkbindings: Clarify that widgets need has-focus for bindings to work
Philip Withnall [Mon, 22 Aug 2016 16:10:47 +0000 (17:10 +0100)]
gtkbindings: Clarify that widgets need has-focus for bindings to work

https://bugzilla.gnome.org/show_bug.cgi?id=770242

9 years agoAdwaita: increase border radius on button.circular...
Lapo Calamandrei [Mon, 22 Aug 2016 12:17:34 +0000 (14:17 +0200)]
Adwaita: increase border radius on button.circular...

...to allow huge circular buttons.
See https://bugzilla.gnome.org/show_bug.cgi?id=770166

9 years agoquartz: Fix typo that broke debug builds
Emmanuele Bassi [Mon, 22 Aug 2016 08:23:02 +0000 (09:23 +0100)]
quartz: Fix typo that broke debug builds

9 years agoUpdated French translation
Alexandre Franke [Mon, 22 Aug 2016 08:20:01 +0000 (08:20 +0000)]
Updated French translation

9 years agoUpdated Brazilian Portuguese translation
Rafael Fontenelle [Mon, 22 Aug 2016 04:13:36 +0000 (04:13 +0000)]
Updated Brazilian Portuguese translation

9 years agoUpdated German translation
Mario Blättermann [Sun, 21 Aug 2016 20:26:50 +0000 (20:26 +0000)]
Updated German translation

9 years agoUpdated German translation
Mario Blättermann [Sun, 21 Aug 2016 09:37:59 +0000 (09:37 +0000)]
Updated German translation

9 years agopopover: Clarify transitions-enabled deprecation
Timm Bäder [Sat, 20 Aug 2016 18:49:09 +0000 (20:49 +0200)]
popover: Clarify transitions-enabled deprecation

https://bugzilla.gnome.org/show_bug.cgi?id=769706

9 years agoUpdated Hungarian translation
Balázs Úr [Sat, 20 Aug 2016 14:43:18 +0000 (14:43 +0000)]
Updated Hungarian translation

9 years agostylepropertyimpl: Remove double assignment
Timm Bäder [Thu, 14 Jul 2016 19:09:25 +0000 (21:09 +0200)]
stylepropertyimpl: Remove double assignment

9 years agogdk: Fix gdk_device_tool_get_serial() return value
Carlos Garnacho [Thu, 4 Aug 2016 16:44:36 +0000 (18:44 +0200)]
gdk: Fix gdk_device_tool_get_serial() return value

This is a guint64, not just a guint.

https://bugzilla.gnome.org/show_bug.cgi?id=770026

9 years agogdk: Fix GdkDevice::tool-changed signal marshaller
Carlos Garnacho [Thu, 4 Aug 2016 16:40:57 +0000 (18:40 +0200)]
gdk: Fix GdkDevice::tool-changed signal marshaller

GdkDeviceTool is an object, not a boxed type.

https://bugzilla.gnome.org/show_bug.cgi?id=770026

9 years agoUpdate GTK+ Windows icon (now scles up to 256x256)
Руслан Ижбулатов [Mon, 27 Jun 2016 11:52:12 +0000 (11:52 +0000)]
Update GTK+ Windows icon (now scles up to 256x256)

Also add the SVG file that was used to produce it (derived
from the old raster logo).

https://bugzilla.gnome.org/show_bug.cgi?id=768081

9 years agowayland: Use keyboard serial for implicit grab
Olivier Fourdan [Thu, 30 Jun 2016 10:56:21 +0000 (12:56 +0200)]
wayland: Use keyboard serial for implicit grab

An xdg-popup requires a serial that the compositor will compare against
its own serial and will dismiss the popup if it doesn't match.

gtk+ uses either a pointer or touch serial for its helper function
_gdk_wayland_seat_get_last_implicit_grab_serial() but if the menu is
triggered before the user has had any pointer or touch interaction with
the client, using a keyboard shortcut, there is neither pointer nor
touch serial available, and gtk+ will use 0 as the default.

As a result, the compositor will instantly dismiss the xdg-popup. In
this case, gtk+ should use the keyboard serial instead.

Track keyboard serial as well and use the keyboard serial as the value
if there is no newer pointer or touch serial available.

https://bugzilla.gnome.org/show_bug.cgi?id=768017

9 years agoMinor doc cleanup
Matthias Clasen [Sat, 20 Aug 2016 03:24:47 +0000 (23:24 -0400)]
Minor doc cleanup

gtk-doc is smart about plural links, nowadays.

9 years agoRemove an outdated comment
Matthias Clasen [Sat, 20 Aug 2016 03:24:08 +0000 (23:24 -0400)]
Remove an outdated comment

It described as TODO what the code right below it already does.

9 years agoUpdated Hungarian translation
Balázs Úr [Fri, 19 Aug 2016 21:58:57 +0000 (21:58 +0000)]
Updated Hungarian translation

9 years agoUpdated German translation
Christian Kirbach [Fri, 19 Aug 2016 20:43:57 +0000 (20:43 +0000)]
Updated German translation

9 years agoUpdate POTFILES.skip
Piotr Drąg [Thu, 18 Aug 2016 12:15:19 +0000 (14:15 +0200)]
Update POTFILES.skip

9 years agowayland: Postpone processing move_to_rect params until showing
Jonas Ådahl [Mon, 8 Aug 2016 07:00:42 +0000 (15:00 +0800)]
wayland: Postpone processing move_to_rect params until showing

At the time of move_to_rect() is called, not all state may have been set
up on the impl gdk window, causing the position to sometimes be
slightly offset due to drap shadow margins. For now, work around this
by postponing the processing of the move_to_rect() parameters until
showing, when its more likely that all state (such as shadow margin)
has been set correctly.

https://bugzilla.gnome.org/show_bug.cgi?id=769402

9 years agogdkwindow: Use toplevel for getting root cords in move_to_rect()
Jonas Ådahl [Thu, 4 Aug 2016 05:56:15 +0000 (13:56 +0800)]
gdkwindow: Use toplevel for getting root cords in move_to_rect()

The Wayland backend manages a set of fake root coordinate spaces, where
each non-relative positioned toplevel (i.e. not popups, popovers,
tooltips etc) make up the basis of separate fake root coordinate spaces.

This means that the Wayland backend doesn't have the abilitiy get a
proper root coordinate when querying on a non-toplevel GdkWindow. To
avoid this issue, first find the toplevel, while translating the anchor
rect coordinates so that they are in the toplevel window coordinate
space. Then use this toplevel to translate the coordinates to root
window coordinate space.

https://bugzilla.gnome.org/show_bug.cgi?id=769402

9 years agowayland: Don't traverse transient-ofs when faking root coordinate space
Jonas Ådahl [Thu, 4 Aug 2016 06:07:47 +0000 (14:07 +0800)]
wayland: Don't traverse transient-ofs when faking root coordinate space

The position of each transient-of will be in fake-root coordinate
space; thus we should not accumulate all the positions making it an
offset; each window is already in fake root coordinate space.

https://bugzilla.gnome.org/show_bug.cgi?id=769402

9 years agowayland: Use effective toplevel as popup parent
Jonas Ådahl [Thu, 4 Aug 2016 06:05:06 +0000 (14:05 +0800)]
wayland: Use effective toplevel as popup parent

When using the set transient-for as a popup parent, fetch the effective
toplevel instead, otherwise we will position against the wrong
coordinate.

https://bugzilla.gnome.org/show_bug.cgi?id=769402

9 years agoUse gtk_popover_popdown/popup where appropriate
Timm Bäder [Wed, 10 Aug 2016 17:18:27 +0000 (19:18 +0200)]
Use gtk_popover_popdown/popup where appropriate

https://bugzilla.gnome.org/show_bug.cgi?id=769706

9 years agoGtkPopover: Deprecate transitions-enabled
Timm Bäder [Wed, 10 Aug 2016 16:46:35 +0000 (18:46 +0200)]
GtkPopover: Deprecate transitions-enabled

The effect of transitions-enabled=true can now be
achieved using gtk_popover_popup/popdown and the effect
of transitions-enabled=false can be achieved using
gtk_widget_show/hide.

https://bugzilla.gnome.org/show_bug.cgi?id=769706

9 years agoGtkPopover: Add gtk_popover_popdown/popup
Timm Bäder [Wed, 10 Aug 2016 16:28:14 +0000 (18:28 +0200)]
GtkPopover: Add gtk_popover_popdown/popup

Since not chaining up in gtk_widget_show/gtk_widget_hide is not allowed,
we can't just implicitly delay the hiding in GtkPopover's hide
implementation. Fix this by introducing gtk_popover_popup() and
gtk_popover_popdown() to show or hide a popover with transition and
revert GtkPopover's show/hide implementation to apply their effect
without the transition.

https://bugzilla.gnome.org/show_bug.cgi?id=769706

9 years agoUpdated Indonesian translation
Andika Triwidada [Mon, 15 Aug 2016 06:49:41 +0000 (06:49 +0000)]
Updated Indonesian translation

9 years agoUpdated Indonesian translation
Andika Triwidada [Mon, 15 Aug 2016 06:30:29 +0000 (06:30 +0000)]
Updated Indonesian translation

9 years agomir: group DND, tooltips, and notifications with menu-type windows
William Hua [Fri, 12 Aug 2016 15:35:38 +0000 (11:35 -0400)]
mir: group DND, tooltips, and notifications with menu-type windows

9 years agoRemove outdated comments
Andreas Pokorny [Tue, 19 Jul 2016 08:46:06 +0000 (10:46 +0200)]
Remove outdated comments

https://bugzilla.gnome.org/show_bug.cgi?id=768138

9 years agoUse Menus to implement tooltips
Andreas Pokorny [Tue, 19 Jul 2016 08:45:33 +0000 (10:45 +0200)]
Use Menus to implement tooltips

The order in which tooltips are created, drawn, shown and then positioned,
always requires repositioning the surface. The tooltip window type only has
limited capability to do so. An alternative could be to use bufferstreams.

https://bugzilla.gnome.org/show_bug.cgi?id=768138